#include<iostream>
#include<functional>

void print()
{
    std::cout<<"helloword"<<std::endl;
}
int main()
{
    std::function<void()>f=print;
    std::function<void()>f1=[](){std::cout<<"lambda"<<std::endl;};
    f();
    f1();
    return 0;
}